import time
import alg
import generator

# 生成数据集
data = generator.generate_data(10000,0,10000)
print("Original data:", data)

# 测试merge_sort算法
start_time1 = time.time()
alg.merge_sort(data)
end_time1 = time.time()
print("Merge sorted data:", alg.merge_sort(data))
print("Merge sort time:", end_time1 - start_time1)

# 测试bubble_sort算法
start_time2 = time.time()
alg.bubble_sort(data)
end_time2 = time.time()
print("Bubble sorted data:", alg.bubble_sort(data))
print("Bubble sort time:", end_time2 - start_time2)